package me.tonywang.springxml;

public class Car {
    private String brand;
    private String company;
    private int price;
    private double maxSpeed;


    public Car(String brand, String company, int price, double maxSpeed) {
        this.brand = brand;
        this.company = company;
        this.price = price;
        this.maxSpeed = maxSpeed;
    }

    public Car(String brand, String company, int price) {
        super();
        this.brand = brand;
        this.company = company;
        this.price = price;
    }
    public Car(String brand, String company, double maxSpeed) {
        super();
        this.brand = brand;
        this.company = company;
        this.maxSpeed = maxSpeed;
    }

    public double getMaxSpeed() {
        return maxSpeed;
    }
    public void setMaxSpeed(double maxSpeed) {
        this.maxSpeed = maxSpeed;
    }
    @Override
    public String toString() {
        return "Car [brand=" + brand + ", company=" + company + ", price=" + price + ", maxSpeed=" + maxSpeed + "]";
    }

}
